#!/usr/bin/python
############ abs max min ################
#print(abs(1))
#print(abs(-1))
#print(abs(12.34))
#print(max(1, 5))
#print(min(10, 88))
x = abs(100)
y = abs(-20)
print(x, y)
print('max(1, 2, 3) =', max(1, 2, 3))
print('min(2, 3, 4) =', min(2, 3, 4))
print('sum([1, 2, 3]) =', sum([1, 2, 3]))
############ 数据类型转换################
print(int('123')) # 123
print(int(12.22)) # 12
print(float('12.34')) #12.34
print(str(1.23)) # 1.23
print(str(100)) # 100
print(bool(1)) # True
print(bool('')) # False
n1 = 255
n2 = 1000
print(hex(n1))
print(hex(n2))
